package com.jy.shenghuilogistics.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jy.shenghuilogistics.bean.Posttb;
import com.jy.shenghuilogistics.service.PostService;

import javax.annotation.Resource;
import java.util.List;

@RestController
@CrossOrigin
public class PostController {
    @Resource
    PostService postService;
    //获取所有职位
    @RequestMapping("getAllPost")
    public List<Posttb> getAllPost() {
        return postService.getAllPost();
    }
}
